package com.moss.cloud.base.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.moss.cloud.base.api.model.param.FlowModelParam;
import com.moss.cloud.base.api.model.vo.FlowModelVO;
import com.moss.cloud.base.biz.model.FlowModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 流程模型DAO
 *
 * @author 瑾年
 * @date 2024-02-06
 */
public interface FlowModelMapper extends BaseMapper<FlowModel> {
    /**
     * 流程模型分页
     *
     * @param page
     * @param tenantId
     * @param param
     * @return
     */
    IPage<FlowModelVO> flowModelPage(Page page, @Param("tenantId") Long tenantId, @Param("param") FlowModelParam param);

    /**
     * 流程模型列表
     *
     * @param tenantId
     * @param param
     * @return
     */
    List<FlowModelVO> flowModelPage(@Param("tenantId") Long tenantId, @Param("param") FlowModelParam param);

}
